package com.web.music.interfaces;

import java.util.Collection;

import javax.servlet.http.HttpServletRequest;

import com.web.music.model.SecuredEntity;
import com.web.music.model.User;

public interface SecurityController {

	public boolean doLogin(HttpServletRequest request, String login, String password);
	
	public void doLogout(HttpServletRequest request);
	
	public User getSessionUser(HttpServletRequest request);
	
	public void updateSecurityStatus(HttpServletRequest request, Collection<? extends SecuredEntity> list);

	public void updateSecurityStatus(HttpServletRequest request, SecuredEntity entity);

}
